<template>
  <div class="box">
    <el-row :gutter="10">
      <el-col :span="6">
        <el-card>
          <!-- 第一个组件 -->
          <Detail>
            <template slot="header">
              <span>总销售额</span>
              <svg
                t="1637478175000"
                class="icon"
                viewBox="0 0 1024 1024"
                version="1.1"
                xmlns="http://www.w3.org/2000/svg"
                p-id="2179"
                width="16"
                height="16"
              >
                <path
                  d="M536 480v192a16 16 0 0 1-16 16h-16a16 16 0 0 1-16-16V480a16 16 0 0 1 16-16h16a16 16 0 0 1 16 16z m-32-128h16a16 16 0 0 1 16 16v32a16 16 0 0 1-16 16h-16a16 16 0 0 1-16-16v-32a16 16 0 0 1 16-16z m8 448c159.056 0 288-128.944 288-288s-128.944-288-288-288-288 128.944-288 288 128.944 288 288 288z m0 48c-185.568 0-336-150.432-336-336s150.432-336 336-336 336 150.432 336 336-150.432 336-336 336z"
                  p-id="2180"
                  fill="#8a8a8a"
                ></path>
              </svg>
            </template>

            <template slot="content">
              <span>￥12546</span>
            </template>

            <template slot="charts">
              <span>周同比 56.67%</span>
              <span>日同比 60.67%</span>
            </template>
            <template slot="footer">
              <span>日销售额</span>
            </template>
          </Detail>
        </el-card></el-col
      >
      <el-col :span="6">
        <el-card>
          <!-- 第二个组件 -->
          <Detail>
            <template slot="header">
              <span>访问量</span>
              <svg
                t="1637478175000"
                class="icon"
                viewBox="0 0 1024 1024"
                version="1.1"
                xmlns="http://www.w3.org/2000/svg"
                p-id="2179"
                width="16"
                height="16"
              >
                <path
                  d="M536 480v192a16 16 0 0 1-16 16h-16a16 16 0 0 1-16-16V480a16 16 0 0 1 16-16h16a16 16 0 0 1 16 16z m-32-128h16a16 16 0 0 1 16 16v32a16 16 0 0 1-16 16h-16a16 16 0 0 1-16-16v-32a16 16 0 0 1 16-16z m8 448c159.056 0 288-128.944 288-288s-128.944-288-288-288-288 128.944-288 288 128.944 288 288 288z m0 48c-185.568 0-336-150.432-336-336s150.432-336 336-336 336 150.432 336 336-150.432 336-336 336z"
                  p-id="2180"
                  fill="#8a8a8a"
                ></path>
              </svg>
            </template>

            <template slot="content">
              <span>2546</span>
            </template>

            <template slot="charts"> <LineEchart></LineEchart> </template>

            <template slot="footer">
              <span>日访问量</span>
            </template>
          </Detail>
        </el-card></el-col
      >
      <el-col :span="6">
        <el-card>
          <!-- 第三个组件 -->
          <Detail>
            <template slot="header">
              <span>支付笔数</span>
              <svg
                t="1637478175000"
                class="icon"
                viewBox="0 0 1024 1024"
                version="1.1"
                xmlns="http://www.w3.org/2000/svg"
                p-id="2179"
                width="16"
                height="16"
              >
                <path
                  d="M536 480v192a16 16 0 0 1-16 16h-16a16 16 0 0 1-16-16V480a16 16 0 0 1 16-16h16a16 16 0 0 1 16 16z m-32-128h16a16 16 0 0 1 16 16v32a16 16 0 0 1-16 16h-16a16 16 0 0 1-16-16v-32a16 16 0 0 1 16-16z m8 448c159.056 0 288-128.944 288-288s-128.944-288-288-288-288 128.944-288 288 128.944 288 288 288z m0 48c-185.568 0-336-150.432-336-336s150.432-336 336-336 336 150.432 336 336-150.432 336-336 336z"
                  p-id="2180"
                  fill="#8a8a8a"
                ></path>
              </svg>
            </template>
            <template slot="content">
              <span>2546</span>
            </template>

            <template slot="charts"> <BarEchart></BarEchart></template>

            <template slot="footer">
              <span>转换率66%</span>
            </template>
          </Detail>
        </el-card></el-col
      >
      <el-col :span="6">
        <el-card>
          <!-- 第四个组件 -->
          <Detail>
            <template slot="header">
              <span>运营活动效果</span>
              <svg
                t="1637478175000"
                class="icon"
                viewBox="0 0 1024 1024"
                version="1.1"
                xmlns="http://www.w3.org/2000/svg"
                p-id="2179"
                width="16"
                height="16"
              >
                <path
                  d="M536 480v192a16 16 0 0 1-16 16h-16a16 16 0 0 1-16-16V480a16 16 0 0 1 16-16h16a16 16 0 0 1 16 16z m-32-128h16a16 16 0 0 1 16 16v32a16 16 0 0 1-16 16h-16a16 16 0 0 1-16-16v-32a16 16 0 0 1 16-16z m8 448c159.056 0 288-128.944 288-288s-128.944-288-288-288-288 128.944-288 288 128.944 288 288 288z m0 48c-185.568 0-336-150.432-336-336s150.432-336 336-336 336 150.432 336 336-150.432 336-336 336z"
                  p-id="2180"
                  fill="#8a8a8a"
                ></path>
              </svg>
            </template>

            <template slot="content">
              <span>88640</span>
            </template>

            <template slot="charts"> <ProgressChart></ProgressChart> </template>
            <template slot="footer">
              <span>周同比56.5%</span>
              <span>日同比66.5%</span>
            </template>
          </Detail>
        </el-card></el-col
      >
    </el-row>
  </div>
</template>


<script>
import Detail from "@/views/dashboard/card/detail/Detail";
import LineEchart from "@/views/dashboard/card/echarts/LineEchart";
import BarEchart from "@/views/dashboard/card/echarts/BarEchart";
import ProgressChart from "@/views/dashboard/card/echarts/ProgressChart";
export default {
  name: "Card",
  components: {
    Detail,
    LineEchart,
    BarEchart,
    ProgressChart,
  },
  data() {
    return {};
  },
};
</script>


<style scoped>
</style>